package com.bizark.rpc.core.mapper.inventory;


import com.bizark.rpc.api.bean.inventory.InventorySanpshots;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface InventorySanpshotsMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(InventorySanpshots record);

    int insertSelective(InventorySanpshots record);

    InventorySanpshots selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InventorySanpshots record);

    int updateByPrimaryKey(InventorySanpshots record);

    /**
     * organization_id,product_id,fetch_date作为唯一性判断
     * @param
     * @return
     */
    int selectIsOnly(@Param("organizationId") Integer organizationId, @Param("productId") Integer productId);

}